
import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter,Route,Switch} from 'react-router-dom'
import {Provider} from 'react-redux';

import store from './reudx/store';
import Login from './pages/login/login'
import Main from './pages/main/man'


ReactDOM.render(
    <Provider store = {store}>
    <BrowserRouter>
        <Switch>
            <Route path='/login' component={Login}/>
            <Route component={Main}/>
        </Switch>  
    </BrowserRouter>
    </Provider>
    ,
    document.getElementById('root'));
